Skip to content

test(wasm-utxo): add unsigned_tx_id method and expand test coverage#263

Merged
OttoAllmendinger merged 1 commit intomasterfrom
BTC-0.fix-zcash-txid
Apr 23, 2026
Merged

test(wasm-utxo): add unsigned_tx_id method and expand test coverage#263
OttoAllmendinger merged 1 commit intomasterfrom
BTC-0.fix-zcash-txid

Conversation

@OttoAllmendinger
Copy link
Copy Markdown
Contributor

Implement unsigned_tx_id() method on BitGoPsbt that delegates to
the network-aware unsigned_txid(), ensuring Zcash PSBTs hash the full
wire format instead of stripped Bitcoin transaction.

Add regression test verifying PsbtAccess::unsigned_tx_id matches
BitGoPsbt::unsigned_txid across all networks and signature states.
For Zcash, explicitly verify the txid differs from the stripped
Bitcoin format.

Fixes a regression introduced in commit bd20d68.

Issue: BTC-0

Co-authored-by: llm-git llm-git@ttll.de

@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review April 23, 2026 13:14
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner April 23, 2026 13:14
@OttoAllmendinger OttoAllmendinger changed the title test(bitgo-psbt): add unsigned_tx_id method and expand test coverage test(wasm-utxo): add unsigned_tx_id method and expand test coverage Apr 23, 2026
Implement unsigned_tx_id() method on BitGoPsbt that delegates to
the network-aware unsigned_txid(), ensuring Zcash PSBTs hash the full
wire format instead of stripped Bitcoin transaction.

Add regression test verifying PsbtAccess::unsigned_tx_id matches
BitGoPsbt::unsigned_txid across all networks and signature states.
For Zcash, explicitly verify the txid differs from the stripped
Bitcoin format.

Fixes a regression introduced in commit bd20d68.

Issue: BTC-0

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger merged commit e9ae38d into master Apr 23, 2026
16 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-0.fix-zcash-txid branch April 23, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants